package test4

object SubTest {
  def main(args: Array[String]): Unit = {
    var s=Subject(100,"语文",120,1L)
    println(s)
    s.classhour=150;
    println(s)

    var s2=Subject(100,"语文",150,1L)
    println(s==s2)

    //模式匹配
    println(">>>>>>>>>>>>>>>>>>>>>>")
    var l=List(101,"化学",90,1L)
    //l.map((a,b,c,d)=>Subject(a,b,c,d));
    println(test4.name)
  }
}
